@include b('cropping') {
  display: flex;
  flex-direction: column;
  gap: getCssVar(spacing, tight);
  height: 500px;
  overflow: hidden;
  user-select: none;
  @include e('content') {
    flex: 1;
    flex-direction: column;
    gap: getCssVar(spacing, tight);
    width: 100%;
    height: 100%;
    overflow: hidden;
    @include m('crop') {
      position: relative;
      height: 400px;
      overflow: hidden;
    }
    @include m('croparea') {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 10;
      box-sizing: border-box;
      overflow: hidden;
      color: rgb(0 0 0 / 50%);
      cursor: move;
      content: '';
      background: transparent;
      border: 1px solid rgb(255 255 255 / 50%);
      box-shadow: 0 0 0 9999em;
      transform: translate(-50%, -50%);
    }
    @include m('img') {
      position: absolute;
      inset: 0;
      top: 50%;
      left: 50%;
      max-width: 100%;
      max-height: 100%;
      user-select: none;
      transform: translate(-50%, -50%);
    }
    @include m('scale-slider') {
      display: flex;
      gap: getCssVar(spacing, base);
      align-items: center;
      align-self: center;
      justify-content: center;
      width: 50%;
      margin: getCssVar(spacing,base-tight) auto;
      font-size: getCssVar(font-size, regular);
    }
    @include m('scale-icon') {
      cursor: pointer;

      &:hover {
        color: getCssVar(color, primary, hover);
      }
    }
  }
  @include e('footer') {
    display: flex;
    flex-shrink: 0;
    gap: getCssVar(spacing, base);
    align-items: end;
    justify-content: end;
    height: 50px;
    overflow: hidden;
    border-top: 1px solid getCssVar(color, border);
    @include m('cancel') {
      padding: getCssVar(spacing, tight) getCssVar(spacing, base);
      cursor: pointer;
      border: 1px solid getCssVar(color, border);
      border-radius: getCssVar(border-radius, small);

      &:hover {
        color: getCssVar(color, primary);
        border-color: getCssVar(color, primary);
        outline: 0;
      }
    }
    @include m('confirm') {
      padding: getCssVar(spacing, tight) getCssVar(spacing, base);
      color: getCssVar(color, primary, text);
      cursor: pointer;
      background-color: getCssVar(color, primary);
      border: 1px solid getCssVar(color, border);
      border-radius: getCssVar(border-radius, small);

      &:hover {
        background-color: getCssVar(color, primary, hover);
      }
    }
  }
}
